﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Hoop Hooper (hooper119@aol.com) -->
<!-- Web Site:  http://www.angelfire.com/pa3/muddas -->
<!-- Modified:  Larry McClurg (larry@honeybells.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Thank you Larry McClurg for the cross-browser fix
function whatFile() {
    var strT = new String();
    document.getElementById("Picture").innerHTML="";
    
    strT=document.forms["form1"].cmuds.value;
    alert(strT.length + " bytes");
    
    strT = "<img id='UploadedImage' src='"+strT+"' />";
    document.getElementById("Picture").innerHTML=strT;
    
    
    image.src = strT;
    image.id = "UploadedImage";
    alert("0id="+image.id+";size="+image.fileSize);
    var images = document.images;
    for (i=0;i<images.length;i++)
    {

        
        alert("id="+images[i].id+";size="+images[i].fileSize+" bytes");
    }
}
//  End -->
</script>

    <title></title>
</head>
<body>
<form id="form1" action="HTMLPage1.htm">
<input type="file" id="cmuds" />
<input type="button" onClick="whatFile()" value="Open File" />
<div id="Picture"></div>
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

</body>
</html>
